CodeChroma Home

Category

Colour Inspiration

8 articles

Sett in Stone: Building a Tartan Designer That Obeys the Thread Count

Sett in Stone: Building a Tartan Designer That Obeys the Thread Count

A browser-based tartan designer is mostly a list, a mirror and a modulo operation — but the details are where it earns its keep. Here's how to expand a sett into a proper 2/2 twill weave in SVG or canvas, catch the halving-and-doubling mistakes before they ship, and handle named setts with the care they deserve.

The Virtual Signwriter: Coach-Enamel Colours in p5.js

The Virtual Signwriter: Coach-Enamel Colours in p5.js

Pub signs are a masterclass in working colour: cream grounds, gold leaf, Brunswick green and a red that means business. Here is how to turn that palette into a p5.js generative sign painter, with brush-like strokes, SVG export and contrast checks that stop the whole thing turning to mush on a phone screen.

Departures, Dyes and Data: Turning UK Rail Ephemera into CSS Palettes

Departures, Dyes and Data: Turning UK Rail Ephemera into CSS Palettes

Orange-banded tickets, amber departure boards and folded timetable cards are accidental colour systems built for function. Here are five found palettes from UK rail ephemera, plus a small browser tool for sampling your own and turning them into accessible CSS custom properties.

Laying Bricks in Code: Procedural British Materials for p5.js Sketches

Laying Bricks in Code: Procedural British Materials for p5.js Sketches

London stock brick, Welsh slate, weathered copper and Portland stone all have a colour story worth stealing. This hands-on p5.js guide shows how to sample those references, layer noise and repeat patterns, keep sketches light in the browser, and export tiles you can actually use.